import _fetch from './request.js'


function getrcode(data) {
    return _fetch({
        url: "/sendsms",
        data: data,
        method: 'post'
    })
}

// 注册用户
function registeruser(data) {
    return _fetch({
        url: "/register",
        data: data,
        method: 'post'
    })
}
// 登录接口
function toLogin(data) {
    return _fetch({
        url: '/login',
        method: 'post',
        data
    })
}
export {
    getrcode,
    registeruser,
    toLogin
}